package mediator.source;

/**
 * @author Chen Guang
 * @date 2019/4/24 0024 下午 16:59
 */
public class ConcreteColleagueB extends Colleague{

    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void sendMsg(String msg, Colleague colleague){
        super.mediator.sendMsg(msg, colleague);
    }

    @Override
    public void notifyMsg(String msg){
        System.out.println("同事ConcreteColleagueB得到消息：" + msg);
    }
}
